<template>
	<footer>
    <div class="footer-container">
      <div class="contact-box">
        <img src="../assets/img/layouts/customer_service.png" />
        <p>(客服在线时间 9:00-17:30)</p>
        <div class="tel">0571-85156700</div>
      </div>
      <div class="nav-box">
        <div class="nav-item">
          <div class="nav-item__title">首页</div>
          <ul>
            <li @click="goToPage('/')">产品首页</li>
          </ul>
        </div>
        <div class="nav-item">
          <div class="nav-item__title">平台</div>
          <ul>
            <li @click="goToPage('/service')">金融服务</li>
            <li @click="goToPage('/service/dispatch')">橙配服务</li>
            <li @click="goToPage('/service/rent')">租赁服务</li>
            <li @click="goToPage('/service/sale')">售后服务</li>
          </ul>
        </div>
        <div class="nav-item">
          <div class="nav-item__title">业务</div>
          <ul>
            <li @click="goToPage('/business')">我要发货</li>
            <li @click="goToPage('/business')">我要租车</li>
          </ul>
        </div>
        <div class="nav-item">
          <div class="nav-item__title">关于</div>
          <ul>
            <li @click="goToPage('/about')">关于我们</li>
            <li @click="goToPage('/about/contact')">联系我们</li>
          </ul>
        </div>
      </div>
      <div class="xcx-box">
        <img src="../assets/img/layouts/xcx.png" />
        <p>微信扫一扫关注我们</p>
      </div>
    </div>
  </footer>
</template>

<script>
	export default {
	  methods: {
      goToPage (item) {
        this.$router.push(item);
      }
    }
	}
</script>

<style lang="scss" scoped>
  footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #202327;
    .footer-container {
      width: 1200px;
      height: 100%;
      margin: 0 auto;
      padding: 40px 0;
      overflow: hidden;
      color: #ffffff;
      .contact-box {
        float: left;
        width: 240px;
        text-align: center;
        border-right: 1px solid rgb(142, 143, 145);
        padding: 4px 0;
        img {
          width: 48px;
          height: 50px;
        }
        p {
          font-size: 12px;
          margin-top: 10px;
        }
        .tel {
          font-size: 21px;
          font-weight: 500;
          margin-top: 8px;
        }
      }
      .nav-box {
        float: left;
        width: calc(100% - 480px);
        padding: 0 10px;
        color: #ffffff;
        .nav-item {
          display: inline-block;
          vertical-align: top;
          width: calc(25% - 5px);
          text-align: center;
          .nav-item__title {
            font-size: 16px;
            font-weight: 500;
            position: relative;
            left: -10px;
          }
          ul {
            margin-top: 10px;
            li {
              font-size: 13px;
              color: rgb(146, 146, 146);
              line-height: 22px;
              cursor: pointer;
            }
          }
        }
      }
      .xcx-box {
        float: right;
        width: 240px;
        text-align: center;
        border-left: 1px solid rgb(142, 143, 145);
        padding: 4px 0;
        img {
          width: 83px;
          height: 83px;
        }
        p {
          margin-top: 8px;
          font-size: 13px;
        }
      }
    }
  }
</style>
